exports.saveSession = function (session_id, session_data, account_id) {
    // session_redis.set(ENV.SESSION_PREFIX + session.session_id, JSON.stringify(session), function (err, reply) {
    //     if (err) {
    //         console.log('保存会话失败：', { session, err });
    //     } else {
    //         console.log('保存会话成功')
    //     }
    // });
    session_list[session_id] = { session_id, session_data, account_id };
    if (account_id) {
        // 如果有登录信息，则同时更新数据库中account_id与update_time
        let sql_update_session = "UPDATE request_session SET account_id = " + account_id +
            ", update_time='" + uim.dateTime() + "' WHERE session_id = " + session_id + " LIMIT 1";
        uim.db_query(sql_update_session, function (err, results, fields) {
            err && console.log('更新会话时间失败');
        });
    }
};
